import { httpInstance } from '@/utils/request'

interface FetchPaymentDetailAPIResData {
  code: number
  data: CwPaymentDetail
  msg: string
  time: string
}

export function fetchPaymentDetailAPI(id: string, token: string) {
  return httpInstance.get<FetchPaymentDetailAPIResData>(
    'api/Project_extend/projectCwPayInfo',
    { params: { id }, headers: { token } },
  )
}
